package com.xqkad.myplayer.fragment;

import android.content.Intent;
import android.support.v4.app.Fragment;

import com.xqkad.myplayer.activity.ReceiverActivity;
import com.xqkad.myplayer.service.BroadcastService;

public class ReceiverFragment extends Fragment implements BroadcastService.Actions{

    public void onReceive(Intent intent){}

    @Override
    public void onResume() {
        super.onResume();
        ((ReceiverActivity)getActivity()).addReceiverFragment(this);
    }

    @Override
    public void onPause() {
        super.onPause();
        ((ReceiverActivity)getActivity()).removeReceiverFragment(this);
    }
}
